package com.lucy.property.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.validation.constraints.NotBlank;

@Data
@ApiModel(value = "单元新增参数")
public class UnitCreateParams {

    @NotBlank(message = "单元编码不可为空")
    @ApiModelProperty("单元编码")
    String unitCode;

    @NotBlank(message = "单元名称不可为空")
    @ApiModelProperty("单元名称")
    String unitName;

    @NotBlank(message = "单元地址不可为空")
    @ApiModelProperty("单元地址")
    String location;

    @ApiModelProperty("单元备注")
    String remark;
}
